/*
 * @Author: ZhaoZhiqi
 * @Date: 2022-07-19 16:03:18
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2022-12-13 11:05:58
 * @Description: 权限管理
 * @FilePath: \tuanfeng-admin-front\src\api\log.ts
 */
import requset from "../utils/request"

/**
 * @description: 登出
 * @param {*}
 * @return {*}
 */
export const LogoutAPI = () => {
    return requset('logoff', 'POST', {})
}

/**
 * @description: 登录
 * @param {string} name 账号
 * @param {string} password 密码
 * @return {*}
 */
export const loginAPI = (data: any) => {
    return requset('login', 'POST', data, true)
}

/**
 * @description: 查询菜单权限
 * @return {*}
 */
export const getMenusAPI = () => {
    return requset('menu/getUserMenusAndBtns', 'GET', {})
}